 <?php foreach($records as $row) { ?>
<div class="container">
        <div class="row">
            <div class="col-md-10 col-md-offset-1">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3>My Profile</h3>
                    </div>
                   
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-3">
                                <center>
                                    <div  class="img-div-md pull left" >
                                        <img src="<?php echo $row->dp; ?>">
                                    </div>
                                </center>
                                
                                <center>
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseImg">
                                        <h5>Change Picture</h5>
                                </a>
                                </center>
                                <div id="collapseImg" class="panel-collapse collapse">
                                    <form action="<?php echo site_url('members/update_dp'); ?>" method="post"  enctype="multipart/form-data">
                                    <label>
                                        Choose Picture:
                                         <input type="file" name="userfile1" required="required" class="form-control">
                                    </label><br>
                                    
                                    <input type="submit" class="btn btn-primary" value="Upload">
                                    </form>
                                </div>
                            </div>
                            <div class="col-md-9">
                                <br><br>
                                <h4><?php echo $row->full_name; ?> <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseName">
                                   Edit
                                </a></h4>
                                <div id="collapseName" class="panel-collapse collapse">
                                    <form action="<?php echo site_url('members/update_name'); ?>" method="post">
                                    <label>
                                        New Name:
                                         <input type="text" name="name" required="required" class="form-control">
                                    </label><br>
                                    
                                    <input type="submit" class="btn btn-primary" value="Update">
                                    </form>
                                </div>
                                <h4><?php echo $row->contact; ?> <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseContact">
                                   Edit
                                </a></h4>
                                <div id="collapseContact" class="panel-collapse collapse">
                                    <form action="<?php echo site_url('members/update_number'); ?>" method="post">
                                    <label>
                                        New Number:
                                         <input type="text" name="number" required="required" class="form-control">
                                    </label><br>
                                    
                                    <input type="submit" class="btn btn-primary" value="Update">
                                    </form>
                                </div>
                                <br>
                                <br>
                                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
                                   <h5>Change Password</h5>
                                </a>
                                 
                                <div id="collapseThree" class="panel-collapse collapse">
                                    <label>
                                        Old Password:
                                         <input type="text" id="old_pass" class="form-control">
                                    </label><br>
                                     <label>
                                        New Password:
                                         <input type="text" id="new_pass" class="form-control">
                                    </label><br>
                                    <label>
                                        Confirm New Password:
                                         <input type="text" id="new_pass1" class="form-control">
                                    </label><br>
                                    
                                    <button class="btn btn-primary" id="update_button">Update</button>
                                    <div id="con"></div>
                                </div>
                                
                            </div>
                           
                        </div>
                        
                        <br><br>
                        <br><br>
                        <br><br>
                        <br><br>
                        
                        
                        
                        
                        
                        
                    
                    </div>
                </div>
            </div>
        </div>
    </div>
 <?php } ?>    
